﻿@model ForumSettingsModel
@using Telerik.Web.Mvc.UI;
@{
    //page title
    ViewBag.Title = T("Admin.Configuration.Settings.Forums").Text;
}


<h1 class="page-title">
<i class="micon-cog"></i>
    @T("Admin.GeneralSettings")				
</h1>




@using (Html.BeginForm())
{
    <div class="section-header">
        <div class="title">
            <img src="@Url.Content("~/Areas/Admin/content/images/ico-configuration.png")" alt="" />
            @T("Admin.Configuration.Settings.Forums")
        </div>
        <div class="options">
            <input type="submit" name="save" class="t-button" value="@T("Admin.Common.Save")" />
        </div>
    </div>
    @Html.Action("SiteScopeConfiguration", "Setting")
    @Html.ValidationSummary(false)
    <table class="adminContent">
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.ForumsEnabled_OverrideForSite, model => model.ForumsEnabled, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.ForumsEnabled):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ForumsEnabled)
                @Html.ValidationMessageFor(model => model.ForumsEnabled)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.RelativeDateTimeFormattingEnabled_OverrideForSite, model => model.RelativeDateTimeFormattingEnabled, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.RelativeDateTimeFormattingEnabled):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.RelativeDateTimeFormattingEnabled)
                @Html.ValidationMessageFor(model => model.RelativeDateTimeFormattingEnabled)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.ShowCustomersPostCount_OverrideForSite, model => model.ShowCustomersPostCount, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.ShowCustomersPostCount):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ShowCustomersPostCount)
                @Html.ValidationMessageFor(model => model.ShowCustomersPostCount)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.AllowGuestsToCreatePosts_OverrideForSite, model => model.AllowGuestsToCreatePosts, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.AllowGuestsToCreatePosts):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowGuestsToCreatePosts)
                @Html.ValidationMessageFor(model => model.AllowGuestsToCreatePosts)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.AllowGuestsToCreateTopics_OverrideForSite, model => model.AllowGuestsToCreateTopics, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.AllowGuestsToCreateTopics):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowGuestsToCreateTopics)
                @Html.ValidationMessageFor(model => model.AllowGuestsToCreateTopics)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.AllowCustomersToEditPosts_OverrideForSite, model => model.AllowCustomersToEditPosts, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.AllowCustomersToEditPosts):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowCustomersToEditPosts)
                @Html.ValidationMessageFor(model => model.AllowCustomersToEditPosts)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.AllowCustomersToDeletePosts_OverrideForSite, model => model.AllowCustomersToDeletePosts, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.AllowCustomersToDeletePosts):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowCustomersToDeletePosts)
                @Html.ValidationMessageFor(model => model.AllowCustomersToDeletePosts)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.AllowCustomersToManageSubscriptions_OverrideForSite, model => model.AllowCustomersToManageSubscriptions, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.AllowCustomersToManageSubscriptions):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowCustomersToManageSubscriptions)
                @Html.ValidationMessageFor(model => model.AllowCustomersToManageSubscriptions)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.TopicsPageSize_OverrideForSite, model => model.TopicsPageSize, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.TopicsPageSize):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.TopicsPageSize)
                @Html.ValidationMessageFor(model => model.TopicsPageSize)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.PostsPageSize_OverrideForSite, model => model.PostsPageSize, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.PostsPageSize):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.PostsPageSize)
                @Html.ValidationMessageFor(model => model.PostsPageSize)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.SearchResultsPageSize_OverrideForSite, model => model.SearchResultsPageSize, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SearchResultsPageSize):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.SearchResultsPageSize)
                @Html.ValidationMessageFor(model => model.SearchResultsPageSize)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.ForumEditor_OverrideForSite, model => model.ForumEditor, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.ForumEditor):
            </td>
            <td class="adminData">
                @Html.DropDownListFor(model => model.ForumEditor, Model.ForumEditorValues)
                @Html.ValidationMessageFor(model => model.ForumEditor)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.SignaturesEnabled_OverrideForSite, model => model.SignaturesEnabled, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.SignaturesEnabled):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.SignaturesEnabled)
                @Html.ValidationMessageFor(model => model.SignaturesEnabled)
            </td>
        </tr>
        <tr class="adminSeparator">
            <td colspan="2">
                <hr />
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.AllowPrivateMessages_OverrideForSite, model => model.AllowPrivateMessages, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.AllowPrivateMessages):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowPrivateMessages)
                @Html.ValidationMessageFor(model => model.AllowPrivateMessages)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.ShowAlertForPM_OverrideForSite, model => model.ShowAlertForPM, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.ShowAlertForPM):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ShowAlertForPM)
                @Html.ValidationMessageFor(model => model.ShowAlertForPM)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.NotifyAboutPrivateMessages_OverrideForSite, model => model.NotifyAboutPrivateMessages, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.NotifyAboutPrivateMessages):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.NotifyAboutPrivateMessages)
                @Html.ValidationMessageFor(model => model.NotifyAboutPrivateMessages)
            </td>
        </tr>
        <tr class="adminSeparator">
            <td colspan="2">
                <hr />
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.ForumFeedsEnabled_OverrideForSite, model => model.ForumFeedsEnabled, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.ForumFeedsEnabled):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ForumFeedsEnabled)
                @Html.ValidationMessageFor(model => model.ForumFeedsEnabled)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.ForumFeedCount_OverrideForSite, model => model.ForumFeedCount, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.ForumFeedCount):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ForumFeedCount)
                @Html.ValidationMessageFor(model => model.ForumFeedCount)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.ActiveDiscussionsFeedEnabled_OverrideForSite, model => model.ActiveDiscussionsFeedEnabled, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.ActiveDiscussionsFeedEnabled):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ActiveDiscussionsFeedEnabled)
                @Html.ValidationMessageFor(model => model.ActiveDiscussionsFeedEnabled)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideSiteCheckboxFor(model => model.ActiveDiscussionsFeedCount_OverrideForSite, model => model.ActiveDiscussionsFeedCount, Model.ActiveSiteScopeConfiguration)
                @Html.CmsLabelFor(model => model.ActiveDiscussionsFeedCount):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ActiveDiscussionsFeedCount)
                @Html.ValidationMessageFor(model => model.ActiveDiscussionsFeedCount)
            </td>
        </tr>
    </table>
}